<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%def name="title()"></%def>
<%def name="stylesheets()"></%def>
<%def name="javascripts()"></%def>
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
    <title>Bumblebee Project Tracker ${self.title()}</title>
    ${h.stylesheet_link_tag('master')}
    ${self.stylesheets()}
    ${h.javascript_include_tag('jquery', 'master')}
    ${self.javascripts()}
</head>

<body>
	
	<div id="header">
	</div>
	
	<div id="container">

       <%def name="navigation()">
	<%
	def get_class(section_name):
		if request.environ['pylons.routes_dict']['controller'] == section_name:
			return "current"
		return "section"
	%>
		<div id="navigation">
		<ul>
		    <li>${h.link_to('Dashboard', h.url_for(controller='/dashboard'), class_=get_class('dashboard'))}</li>
		    <li>${h.link_to('Project', h.url_for(controller='/project'), class_=get_class('project'))}</li>
		    <li>${h.link_to('People', h.url_for(controller='/user'), class_=get_class('user'))}</li>
		    <li>${h.link_to('Recent Changes', h.url_for(controller='/recentchanges'), class_=get_class('recentchanges'))}</li>			
			<li>${h.link_to('Logout', h.url_for(controller='/login', action='signout'))}</li>
		</ul>
		</div>
		</%def>
		${self.navigation()}

		<div id="content">
	
	        % if c.flash:
    		<div class="flash">${c.flash}</div>
            % endif
 
    		${next.body()}
		</div>
	</div>
</body>
</html>
